Ext.define("TS.view.AccordionMenu", {
	extend:"Ext.panel.Panel",
	alias: 'widget.accmenu',
	id:"accmenu",
    requires:['TS.store.MenuStore'],
	region : 'west',
	title : "导航",
	width : 160,
	iconCls : "icon-tree",
	autoScroll : false,
	layout : 'accordion',
	collapsible : true,
	layoutConfig : {
		animate : true
	},
	split : true,
	initComponent: function() {
		var st=Ext.create('TS.store.base.DeptStore');
    	//st.load();
		var me = this;
		Ext.apply(this,{
			tbar:[{
					xtype:'combobox',
					listConfig:{
						emptyText:'没有分配部门',
						maxHeight:200
					},
					labelWidth:50,
					fieldLabel:'登录部门',
					labelStyle:'font-size: 11px;',
					name:'id',
					width:155,
					queryMode:'local',//[local|remot]
					store:st,
					valueField:"deptId",
					displayField :'deptName',
					typeAhead : true
                   }]
		});
        me.callParent(arguments);
    }
}); 